.PHONY:all
all:thread test

thread:main.cpp
	g++ -o $@ $^ -std=c++11 -lpthread
test:testthread.cpp
	g++ -o $@ $^ -std=c++11 -lpthread
.PHONY:clean
clean:
	rm -rf thread test

# thread:main.cpp
# 	g++ -o $@ $^ -std=c++11 -lpthread
# .PHONY:clean
# clean:
# 	rm -rf thread